#import "dfhgwhruebvhrheyignoreestablish.h"
@implementation dfhgwhruebvhrheyignoreestablish {
    UILabel *titleLabel;
    UILabel *valueLabel;
    UIView *line;
}
- (instancetype)initWithFrame:(CGRect)frame {
    if(self = [super initWithFrame:frame]) {
        [self setUI];
    }
    return self;
}
- (void)setUI {
    self.backgroundColor = [UIColor whiteColor];
    titleLabel = [[UILabel alloc] init];
    titleLabel.textColor = @"#3B414B".dhgfywegwygeydwlearneddesignate;
    titleLabel.font = [UIFont regular:15];
    [self addSubview:titleLabel];
    valueLabel = [[UILabel alloc] init];
    valueLabel.textColor = @"#3B414B".dhgfywegwygeydwlearneddesignate;
    valueLabel.font = [UIFont regular:15];
    [self addSubview:valueLabel];
    line = [[UIView alloc] init];
    line.backgroundColor = @"#E6E6E6".dhgfywegwygeydwlearneddesignate;
    [self addSubview:line];
}
- (void)setTitle:(NSString *)title andDesc:(nonnull NSString *)desc withColor:(nullable UIColor *)color {
    titleLabel.text = title;
    valueLabel.text = desc;
    if (color) {
        titleLabel.textColor = color;
        valueLabel.textColor = color;
    }
}
- (void)layoutSubviews {
    [super layoutSubviews];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self).offset(15).priorityHigh();
        make.left.equalTo(self).offset(15);
        make.centerY.equalTo(self);
        make.height.mas_equalTo(21);
    }];
    [valueLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self).offset(-15);
        make.centerY.equalTo(titleLabel);
    }];
    [line mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.bottom.right.equalTo(self);
        make.height.mas_equalTo(1);
    }];
}
@end
